# -*- coding: utf-8 -*-

from rest_framework import serializers
from .models import Author, AuthorContact


class AuthorSerializer(serializers.ModelSerializer):

    class Meta:
        model = Author
        fields = '__all__'


class AuthorContactSerializer(serializers.ModelSerializer):

    class Meta:
        model = AuthorContact
        fields = '__all__'
